package com.chunfen.tomcat.designpattern;

import org.junit.Test;

public class GumballMachineTestDrive {
    @Test
    public void test(){
        GumballMachine machine = new GumballMachine(2);

        System.out.println(machine);

        machine.insertQuarter();
        machine.turnCrank();

        System.out.println(machine);

        machine.insertQuarter();
        machine.turnCrank();

        machine.insertQuarter();
        machine.turnCrank();

        System.out.println(machine);

    }
}
